package models;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonTypeInfo;

@JsonTypeInfo(use=JsonTypeInfo.Id.MINIMAL_CLASS, include=JsonTypeInfo.As.PROPERTY)
public class Note  {
	
	private Date created;
	protected Date modified;
	protected String text; 
	
	public Note()
	{
		this.created = new Date();
		this.modified = new Date(); 
	} 
	
	public Note(String text)
	{
		this();
		this.text = text;
	}
 	 
	public Date getCreated() {
		return created;
	}

	public Date getModified() {
		return modified;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
		this.modified = new Date();
	}

}
